<template>
  <div style="display:flex">
      <div style="width:100px;text-align:right;magin-right:10px">{{title}}</div>
      <select style="width:100px" :value="value"
            @change="$emit('input',$event.target.value)"  >
          <!-- <option v-for="obj in array" :key="obj.id" :value="obj.id">{{obj.name}}</option> -->
         <option v-for="obj in array" :key="obj[info.split(':')[0]]" 
         :value="obj[info.split(':')[0]]">{{obj[info.split(':')[1]]}}</option>
          </select>
  </div>
</template>

<script>
export default {
    props:["title","array","value","info"]
}
</script>

<style>

</style>